package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@JsonIgnoreProperties("handler")
public class CommendReply extends BaseDomain {
    public static final int STATE_NORMAL = 0;
    public static final int STATE_STOP = -1;
    public static final int STATE_COMMEND = 1;

    //评论内容
    private String content;
    //评论时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date commendTime;
    //对哪条评论进行评论
    private StrategyComment strategyComment;
    //发评论的用户
    private User user;

    //状态
    private Integer state = STATE_NORMAL;

    private List<Reply> replys = new ArrayList<>();

}